using System;
using System.ComponentModel.DataAnnotations;
namespace EAM.Model 
{
		
	[Serializable]
	public class AssetManager
	{
        public AssetManager()
        {
            AssetCID = -1;
            AssetBrand = -1;
            AssetStatus = -1;
            AssetSupply = -1;
            AssetContractID = "";
            AssetFrom = -1;
            AssetOut = -1;
            AssetLevel = -1;

            AssetDepriciationRate = (decimal)0.1;

            AssetOutManu = DateTime.Now.Date;
            AssetPurchaseTime = DateTime.Now.Date;
            AssetBuyTime = DateTime.Now.Date;
            AssetRegisterTime = DateTime.Now.Date;
            AssetLastUpdateTime = DateTime.Now.Date;
        }


		[Key]
		public Int32 AssetID { get; set; }
        [Required]
		public String AssetName { get; set; }
        [Required]
		public Int32 AssetCID { get; set; }
		public DateTime? AssetOutManu { get; set; }
		public Decimal? AssetWarrant { get; set; }
        
		public Int32? AssetBrand { get; set; }
		public String AssetBarcode { get; set; }
		public String AssetLabel { get; set; }
        [Required]
		public Int32? AssetStatus { get; set; }
        //[Required]
		public Int32? AssetSupply { get; set; }
        //[Required]
		public String AssetContractID { get; set; }
        //[Required]
		public Guid? AssetPurchaseID { get; set; }
		public String AssetPurchaseName { get; set; }
		public Decimal? AssetPurchaseCost { get; set; }
		public Int32? AssetPurchaseCostFrom { get; set; }
        [Required]
		public Int32? AssetFrom { get; set; }
        //[Required]
		public Int32? AssetOut { get; set; }
		public String AssetCustodyAddress { get; set; }
       
		public Guid? AssetCustodyMemberID { get; set; }
		public String AssetCustodyMemberName { get; set; }
        
		public Guid? AssetUsedMemberID { get; set; }
		public String AssetUsedMemberName { get; set; }
		public String AssetUsedAddress { get; set; }
		public Decimal? AssetDepriciationRate { get; set; }
		public String AssetDescript { get; set; }
        [Required]
		public Int32? AssetLevel { get; set; }
		public DateTime? AssetWarrantLastTime { get; set; }
        //[Required]
		public Int32? AssetDepartID { get; set; }
		public String AssetDepartName { get; set; }
        [Required]
		public Boolean AssetInventoryExists { get; set; }
		public DateTime? AssetInventoryTime { get; set; }
		public Guid AssetInventoryMemberIDs { get; set; }
		public String AssetInventoryMemberName { get; set; }
		public String AssetPictures { get; set; }
		public Int32? AssetMaintenanCycle { get; set; }
		public String AssetSpecModel { get; set; }
		public DateTime? AssetPurchaseTime { get; set; }
		public DateTime? AssetBuyTime { get; set; }
		public String AssetBuyCode { get; set; }
		public String AssetBuysssInvoiceNumber { get; set; }
		public Int32? AssetUsedYear { get; set; }
		public DateTime? AssetRegisterTime { get; set; }
		public Guid AssetRegisterMember { get; set; }
		public DateTime? AssetLastUpdateTime { get; set; }
		public Guid AssetLastUpdateMember { get; set; }
        public String AssetBatchNo { get; set; }
	}
    
}
